I think the new name better reflects the effect of the property.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3173>
class NotificationMessage extends MessageList.Message {
_init(notification) {
super._init(notification.source, notification.title, notification.body);
- this.setUseBodyMarkup(notification.bannerBodyMarkup);
+ this.setUseBodyMarkup(notification.useBodyMarkup);
this.notification = notification;
this.datetime = notification.datetime;
this.setIcon(this._getIcon());
this.setTitle(n.title);
this.setBody(n.body);
- this.setUseBodyMarkup(n.bannerBodyMarkup);
+ this.setUseBodyMarkup(n.useBodyMarkup);
}
vfunc_clicked() {
this.privacyScope = PrivacyScope.USER;
this.forFeedback = false;
this.body = null;
- this.bannerBodyMarkup = false;
+ this.useBodyMarkup = false;
this.sound = null;
this._soundPlayed = false;
this.actions = [];
this.title = title;
this.body = banner;
- this.bannerBodyMarkup = params.bannerMarkup;
+ this.useBodyMarkup = params.bannerMarkup;
if (params.datetime)
this.datetime = params.datetime;
let body = '';
if (n.body) {
const bodyText = n.body.replace(/\n/g, ' ');
- body = n.bannerBodyMarkup
+ body = n.useBodyMarkup
? bodyText
: GLib.markup_escape_text(bodyText, -1);
}